// 自定义全局样式
import '@/asstes/css/global.css'
import { createApp } from "vue";
import App from "@/App.vue";
import { router } from "@/router/index.js";
import "@/router/routerBefore.js";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from '@element-plus/icons-vue';

import VForm3 from 'vform3-builds'  //引入VForm 3库
import 'vform3-builds/dist/designer.style.css'  //引入VForm3样式

import "virtual:windi.css";
import store from "@/store/index.js";
import perm from "@/permission/index.js";
const app = createApp(App);

// 全局注册所以element-plus图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(ElementPlus);
app.use(router);
app.use(store);
app.use(perm);
app.use(VForm3)  //全局注册VForm 3(同时注册了v-form-designer和v-form-render组件)
app.mount("#app");
